<?php 
class CMS_Models_Content extends Zend_Db_Table_Abstract
{
  protected $_name = "content";	
	
  public function __construct( )
  {
    parent::__construct(array('table' =>$this->_name));
  }
  
  public function getContentById($id)
  {
    return $this->fetchRow("id = '$id' ");
  }
   
  public function getEnabledContentsByCategory($c)
  {
	return $this->fetchAll(array("id_category = '$c'", "enabled = 1"),"title");
  }
}
?>